#include<bits/stdc++.h>
using namespace std;
int r[100005],n;
bool out[100005];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>r[i];
    }
    sort(r+1,r+n+1);
    int pos=1;
    for(int i=1;i<=n;i++)
    {
        if(r[pos]<r[i])
        {
            out[pos]=1;
            pos++;
        }
    }
    int ans=0;
    for(int i=1;i<=n;i++)
    {
        if(!out[i])
        {
            ans++;
        }
    }
    cout<<ans<<endl;
	return 0;
}